home *** CD-ROM | disk | FTP | other *** search
/ Java 1996 August / Java - Summer 1996.iso / sundist / java / contrib / emacs / README.javamode < prev    next >
Encoding:
Internet Message Format  |  1995-09-10  |  2.1 KB

  1. Date: Wed, 29 Mar 95 08:17:40 EST
  2. From: oee@erinet.com (Mitch Scott Chapman)
  3. To: hotjava-interest@java.Sun.COM
  4. Message-Id: <9503291317.AA27792@eri>
  5. Subject: Emacs Mode for Java
  6. content-length: 29274
  7.  
  8.  
  9. HotJava looks like alot of fun.  What's more, the language definition
  10. for Java is a thing of beauty.  I can't wait for a Linux port, as it
  11. would let me play around with Java at home.
  12.  
  13. Dunno how many of you use GNU emacs, but I just whanged up a couple of
  14. elisp modules to support fontified editing of Java source code.  They
  15. are attached.
  16.  
  17. (I apologize if this message is considered too lengthy or inappropriate
  18. for this mailing list.)
  19.  
  20. The code is fresh and poorly documented.  Apologies for that, too.
  21.  
  22. java-mode.el is derived from the cplus-md which shipped with GNU emacs
  23. 19.28.  It changes very little from that module.
  24.  
  25.     o It adds a new mode map, java-mode-map.
  26.  
  27.     o It tries to support the indentation style of the Java code
  28.       shipped with the Alpha2 HotJava release, by defining
  29.       defun-prompt-regexp so you can jump to the beginning/end of
  30.       properly indented Java methods.
  31.  
  32.     o It includes a couple of functions for use with the GNU emacs
  33.       19.28 imenu module (which pops up a menu of methods defined
  34.       in the current module).  These are near the end of the
  35.       module.
  36.  
  37. java-f-lck.el extends font-lock support to Java source modules.  I've
  38. tested only the gaudier fontification of Java source.  See the 
  39. comments for hints as to how to plug it into your emacs installation.
  40.  
  41. Of course this stuff works only with ASCII-encoded Java source files,
  42. not with Unicode.  Perhaps someone would like to create an extensible
  43. text editor in Java to solve this problem :)
  44.  
  45.  
  46. Everything is released under the terms of GPL version 2, which is also
  47. attached.
  48.  
  49. Finally, *many* thanks to Sun and the Java/HotJava developers for
  50. giving us access to their elegant work.
  51.  
  52. --
  53. Mitch Chapman
  54. Ohio Electronic Engravers, Inc.
  55. email: meaddata.com!oee!mchapman
  56.  
  57. [  I have made the three files
  58.  
  59.     README
  60.     java-mode.el
  61.     java-f-lck.el
  62.     License
  63.  
  64.    available via anonymous ftp in 
  65.  
  66.     ftp://java.sun.com/java/contrib/emacs/javamode.tar.Z
  67.  
  68.    They are also available as individual files in the
  69.    same directory.
  70.  
  71.    -csw]
  72.